﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Medianamik.UI.RedirectManagement._Default"
 MasterPageFile="../MasterPages/MedianamikModule.Master" %>


<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:HyperLink ID="lnkAddRedirect" NavigateUrl="RedirectManagement.aspx" runat="server" class="Action BtAjouter" Text="<%$ Resources: Medianamik_RedirectManagement, AddRedirect %>"/>
    
    <a href="#" class="Action BtAnnuler-Inactif">Annuler</a>
</asp:Content>

 
<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<asp:UpdatePanel runat="server" id="UpdatePanel" >
	<ContentTemplate>
	    <telerik:RadGrid runat="server" ID="GridRedirect" EnableEmbeddedSkins="false"
        Skin="Medianamik"
        AllowPaging="false"
        AutoGenerateColumns="false"
        OnItemCommand="GridRedirect_ItemCommand"
        OnNeedDataSource="GridRedirect_NeedDataSource"
        AllowMultiRowSelection="false" Width="100%"
        >
            <MasterTableView DataKeyNames="ID">
                <Columns>
				    <telerik:GridTemplateColumn >
				        <HeaderTemplate>
				         <asp:Literal runat="server" Text="<%$ Resources: Medianamik_RedirectManagement, FromColumn%>" ></asp:Literal>
				         <med:GridColumnFilter runat="server" Value ='<%# Filter %>'  OnFilter="Filter_Filter" id="Filter"></med:GridColumnFilter> 
				        </HeaderTemplate> 
				        <ItemTemplate>
				            <img alt="" src="/Medianamik/images/Icones/Ico_Redirection.png" class="IconesElements" /><p><%# Eval("DisplayName") %></p>
				        </ItemTemplate>
				    </telerik:GridTemplateColumn>
				    <telerik:GridTemplateColumn HeaderText="<%$ Resources: Medianamik_RedirectManagement, ToColumn%>">
				        <ItemTemplate>
				            <%# FormatRedirectTo((Medianamik.Core.Node)Eval("RedirectToNode")) %>
				        </ItemTemplate>
				    </telerik:GridTemplateColumn>
				    <telerik:GridBoundColumn HeaderText="<%$ Resources: Medianamik_RedirectManagement, ResponseCodeColumn%>" DataField="ResponseCode"></telerik:GridBoundColumn>
				    <telerik:GridTemplateColumn HeaderStyle-Width="1%" HeaderText="Actions">
					    <HeaderStyle HorizontalAlign="Center" />
					    <ItemStyle CssClass="Actions" />
					    <ItemTemplate>
						    <table border="0" cellpadding="0" cellspacing="0" align="center">
							    <tr>
								    <td><med:EditLink Enabled="true" runat="server" LockEnabled="false" title="<%$ Resources: Medianamik_Global, Action_EditTooltip %>" NavigateUrl='<%# "RedirectManagement.aspx?id=" + Eval("ID").ToString() %>' /></td>
								    <td><med:ConfirmedDeleteButton ID="btnDeleteNode" title="<%$ Resources: Medianamik_Global, Action_DeleteTooltip %>" CommandArgument='<%# Eval("ID") %>' CommandName="Delete" runat="server" ConfirmText="<%$ Resources: Medianamik_RedirectManagement, ConfirmDeleRedirectText %>" /></td>
							    </tr>
						    </table>
					    </ItemTemplate>
				    </telerik:GridTemplateColumn>
                </Columns>
                <NoRecordsTemplate>
			        <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			    </NoRecordsTemplate>
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true">
                <Selecting />
                <ClientEvents  />
            </ClientSettings>
            <PagerStyle ShowPagerText="false" Mode="NumericPages" Position="TopAndBottom" />
        </telerik:RadGrid>
      </ContentTemplate> 
	</asp:UpdatePanel>
    

</asp:Content>
<asp:Content ID="ExternalContent" ContentPlaceHolderID="ExternalContentHolder" runat="server">
   
</asp:Content>
